Use the statements and functions described here to perform date and time calculations.
ここで説明するステートメントおよび関数は、日付および時刻に関する計算を行うためのものです。
Office Basic lets you calculate time or date differences by converting the time and date values to continuous numeric values. After the difference is calculated, special functions are used to reconvert the values to the standard time or date formats.
Office Basic での日付および時刻の計算では、これらの情報をいったん連続的な数値に変換してから、各種の処理を行います。そして必要な処理の終了後、専用の変換用関数を用いて、計算結果を通常の日付や時刻の形式に戻します。
![]() | You can combine date and time values into a single floating-decimal number. Dates are converted to integers, and times to decimal values. Office Basic also supports the variable type Date, which can contain a time specification consisting of both a date and time.
特定時点の日付と時刻を示す情報は、 1 つの浮動小数点数値として変換されます。その際に日付は整数部とされ、時刻は小数部として変換されます。また Office Basic には Date (日付) 型の変数も用意されており、この中には日付と時刻の両方を示すデータを格納できます。 |